package com.star.message.repository.model;

import com.star.common.core.contract.BaseRepository;
import com.star.common.core.contract.Model;
import com.star.message.repository.service.UserSmsConfigRepository;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 用户短信配置(UserSmsConfig)表实体类
 *
 * @author 周恒哲
 * @since 2023-10-24 18:18:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class UserSmsConfigBO extends Model {
    /**
     * 主键ID（雪花算法）
     */
    @Schema(description = "主键ID")
    private String id;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 创建人编码
     */
    @Schema(description = "创建人编码")
    private String createBy;

    /**
     * 创建人编码
     */
    @Schema(description = "创建人")
    private String creator;

    /**
     * 创建人编码
     */
    @Schema(description = "更新人编码")
    private String updateBy;

    /**
     * 创建人编码
     */
    @Schema(description = "更新人")
    private String updater;
    /**
     * 租户ID
     */
    @Schema(description = "租户ID")
    private String tenantId;
    /**
     * 语言类型
     */
    @Schema(description = "语言类型")
    private String languageCode;
    /**
     * 语言描述
     */
    @Schema(description = "语言描述")
    private String languageDesc;
    /**
     * 短信模版Code
     */
    @Schema(description = "短信模版Code")
    private String templateCode;
    /**
     * 短信模版详细信息
     */
    @Schema(description = "短信模版详细信息")
    private String templateDesc;
    /**
     * 短信签名名称
     */
    @Schema(description = "短信签名名称")
    private String signName;
    /**
     * 短信发送平台 aliyun-阿里云SMS短信
     */
    @Schema(description = "短信发送平台")
    private String platform;
    /**
     * 状态
     *
     * @see com.star.common.core.contract.enums.StatusEnum
     */
    @Schema(description = "状态")
    private Integer status;

    public static UserSmsConfigRepository repository() {
        return BaseRepository.of(UserSmsConfigBO.class);
    }

}

